package designpattern.proxy.simple;

public class GamePlayerProxy implements  IGamePlayer {

    private IGamePlayer gamePlayer ;

    public GamePlayerProxy(IGamePlayer gamePlayer) {
        this.gamePlayer = gamePlayer;
    }
  /**代练登陆*/
    @Override
    public void login(String user, String password) {
          this.gamePlayer.login(user,password);
    }
/**代练杀怪*/
    @Override
    public void killBoss() {
        this.gamePlayer.killBoss();

    }
/**代练升级*/
    @Override
    public void upgrade() {
         this.gamePlayer.upgrade();
    }
}
